package cn.com.ege.mvc.service.impl.business;

import java.io.Serializable;

import cn.com.ege.mvc.exception.BusinessException;
import cn.com.ege.mvc.model.business.Attribute;
import cn.com.ege.mvc.service.BaseService;

public class AttributeService extends BaseService<Attribute> implements Serializable {
	public void save(Attribute attribute) throws BusinessException{
		if (null != attribute ) {
			if(null != attribute.getId()&& 0 != attribute.getId()){
				update(attribute);
			}else{
				add(attribute);
			}
		}else {
			throw new BusinessException("属性Attribute不能为空。");
		}
	}
}
